home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 26
/
CU Amiga Magazine's Super CD-ROM 26 (1998)(EMAP Images)(GB)[!][issue 1998-09].iso
/
CUCD
/
Utilities
/
msql-2.0.4.1
/
install_script
< prev
next >
Wrap
Text File
|
1998-06-20
|
2KB
|
77 lines
; $VER: Install msql server (05.19.98)
;
; Installer script for the msql server
; ©1998 Christophe Sollet
;
(set UserLevel.old @user-level)
; Initialize messages.
(set #SelDIns "\nSelect the location where msql server will be install.\nA drawer called Msql will be created there.\n")
(set #SelAss "\nFollowing lines will be add to your user-startup file:\nAssign Msql: \n")
; the install procedure
; Copy the distribution
(procedure CopyMsql
; Create the msql drawer
(makedir ilocation (infos))
; Copy all...
(copyfiles (source "")
(dest ilocation)
(all)
)
)
; Setup mSQL
(procedure SetupMsql
; Setup little but vital things
(makedir (prompt) (tackon ilocation "msqldb")) ; will contain all databases.
(makedir (tackon ilocation "msqldb/.tmp") (prompt)) ; required for working query!
)
; Add Assign & Path to the user-startup
(procedure InstallAss
(set #SelAss (cat "\nFollowing lines will be added to your user-startup file:\nAssign Msql: " ilocation "\nPath Msql:bin ADD\n"))
(startup "Msql Server"
(help @startup-help)
(command (cat "Assign Msql: " ilocation "\nPath Msql: ADD"))
(prompt #SelAss)
)
)
; The install process begin here.
; Welcome the user.
(complete 0)
(welcome)
; Msql install dest.
(set ilocation
(askdir
(prompt #SelDIns)
(help @askdir-help)
(default @default-dest)
)
)
; Install all
(set ilocation (tackon ilocation "Msql"))
(CopyMsql)
(complete 90)
(SetupMsql)
(complete 95)
(InstallAss)
(complete 100)
; exit
(set @default-dest ilocation)
(exit "A reboot now is recommended before you run the Msql Server\n")